home *** CD-ROM | disk | FTP | other *** search
/ Power Utilities / Power Utilities.iso / utility / pro105 / toddy.doc < prev   
Encoding:
Text File  |  1993-10-26  |  82.9 KB  |  1,746 lines

  1.  
  2.  
  3.  
  4.                                       Toddy
  5.                             A DOS Command Line Editor
  6.  
  7.                                        by
  8.  
  9.                                    Eric Tauck
  10.                                1304 Deerpass Road
  11.                              Marengo, IL 60152-9644
  12.                                      U.S.A.
  13.  
  14.                              Compuserve: 72457,1557
  15.                        Internet: 72457.1557@compuserve.com
  16.  
  17.         Toddy is a terminate and stay resident (TSR) utility that en-
  18.         hances the entry and editing of DOS commands, saves commands for
  19.         later retrieval, and provides resident macros that work like
  20.         simple batch files.  Only certain programs that use DOS for
  21.         input, like COMMAND.COM or DEBUG.COM, will be affected by Toddy.
  22.         Toddy will work on any PC compatible running DOS 2.0 or greater.
  23.         Toddy may be used and distributed freely.
  24.  
  25.                                   Installation
  26.                                   ------------
  27.  
  28.         Toddy is installed by running it from the command line.  The
  29.         features of Toddy are available upon installation.  Toddy is
  30.         usually installed from the AUTOEXEC.BAT file when the computer is
  31.         booted up.  If you get the message "Multiplex number in use by
  32.         another program" when you try to install Toddy, see the /M switch
  33.         described in the Switch Descriptions section.
  34.  
  35.         Toddy needs about 25000 bytes of memory to install, but shrinks
  36.         to 6624 bytes when it becomes resident.  The resident memory
  37.         usage changes according to the settings of the /B, /HS, /KS, /MN,
  38.         /MS, /NS, /VL, and /VN switches.  If you get the message "Not
  39.         enough memory" when loading Toddy high, try loading Toddy before
  40.         other TSR's.
  41.  
  42.         The appearance of Toddy (the colors and cursor types) can be set
  43.         with the /AC, /AE, /AT, /TC, /TE, /TI, /TO, /TS, and /TX switch-
  44.         es.  By default, Toddy sets all the colors to white on black and
  45.         does not modify the cursor type.
  46.  
  47.         The key assignments of Toddy can be changed using key macros.
  48.         Throughout this document, commands are referred to by specific
  49.         keystrokes, however these are only the default key assignments
  50.         and may be changed.
  51.  
  52.         All changes you make to Toddy (colors, key assignments, macros,
  53.         etc. ) can be saved and restored using the /OW, /OR, and /W
  54.         switches.
  55.  
  56.         Once installed, Toddy may be disabled with the /D switch and
  57.         enabled with the /E switch.  These switches might be useful if an
  58.         application conflicts with Toddy.  Toddy may also be removed from
  59.  
  60.  
  61.  
  62.         memory with the uninstall switch (/U).
  63.  
  64.         The end of this document contains a list of version changes and
  65.         some additional notes on using and configuring Toddy.
  66.  
  67.                                      Editing
  68.                                      -------
  69.  
  70.         Toddy's enhanced editing commands are available immediately upon
  71.         installation.  When entering a DOS command, use the right and
  72.         left arrow keys to move the cursor non-destructively.  Past
  73.         commands can be retrieved by pressing the up and down arrow keys,
  74.         or by typing a few letters and searching for a matching command
  75.         with the Tab key.  You can quickly enter the name of an existing
  76.         file by typing part of the name and pressing F9 until the entire
  77.         name is displayed.  The standard DOS editing keys (F1 to F6) may
  78.         also be used.
  79.  
  80.         In the next table and throughout the rest of this document, a
  81.         "Ctrl-" to the immediate left of a keystroke or letter refers to
  82.         that keystroke being pressed while the CONTROL key is held down.
  83.         Similarly, an "Alt-" next to a keystroke refers to the keystroke
  84.         being pressed while the ALT key is held down.  A complete list of
  85.         editing commands follows:
  86.  
  87.           Left              move cursor left
  88.           Right             move cursor right
  89.           Home              move cursor to first column
  90.           End               move cursor to last column
  91.           Ctrl-Left         move cursor to previous word
  92.           Ctrl-Right        move cursor to next word
  93.  
  94.           Delete            delete character under the cursor
  95.           Backspace         delete character to the left of the cursor
  96.           Ctrl-Backspace    delete word to the left of the cursor
  97.           Ctrl-Home         delete all characters left of the cursor
  98.           Ctrl-End          delete all characters right of the cursor
  99.           Escape            delete all characters on the line
  100.  
  101.           Up                load older history line
  102.           PgUp              load oldest history line
  103.           Down              load newer history line
  104.           PgDn              load newest history line (last line saved)
  105.           Tab               search for next matching history line
  106.           Shift-Tab         search for previous matching history line
  107.           Alt-F7            delete all history lines
  108.  
  109.           F9                replace word with next matching file name
  110.           Shift-F9          replace word with previous matching file name
  111.           F10               append matching file name
  112.  
  113.           Enter             accept input
  114.           Ctrl-Enter        accept input without any processing
  115.  
  116.           Insert            toggle insert mode
  117.  
  118.  
  119.  
  120.  
  121.           Ctrl-L            delete word to the left of the cursor
  122.           Ctrl-R            delete word to the right of the cursor
  123.           Ctrl-D            delete current history line
  124.           Ctrl-K            copy current line to history then clear line
  125.           Ctrl-V            enter a control character
  126.  
  127.           F1                copy next character from the template
  128.           F2                copy template characters up to the next key
  129.           F3                copy remaining characters from the template
  130.           F4                skip template characters up to the next key
  131.           F5                copy current input to the template
  132.           F6                insert EOF character
  133.  
  134.         To enter control characters normally interpreted by DOS or Toddy,
  135.         press Ctrl-V and then the letter.  For instance, press Ctrl-VC to
  136.         enter Ctrl-C.  Toddy displays control characters using the ASCII
  137.         character, for instance a ^C (which is ASCII code 3) shows up as
  138.         a little heart.  Besides the control keys listed above (Ctrl-L,
  139.         Ctrl-R, Ctrl-D, Ctrl-K, and Ctrl-V), some other codes that can
  140.         only be entered using Ctrl-V include: Ctrl-C (break), Ctrl-M
  141.         (enter), Ctrl-P (toggle line printer echo) and Ctrl-S (pause
  142.         display).  Note that Toddy does not allow the NUL code (Ctrl-@)
  143.         to be entered.
  144.  
  145.                               File Name Completion
  146.                               --------------------
  147.  
  148.         The file name completion feature lets you quickly enter the name
  149.         of an existing file.  Just type the first few letters of the file
  150.         name and press F9.  The first file matching those letters will
  151.         replace the letters.  Pressing F9 again will replace the first
  152.         matching file with the next matching file.  If there are no more
  153.         matching files, pressing F9 does nothing.  Shift-F9 replaces the
  154.         last match with the previous match.  F10 works similarly to F9,
  155.         except matching files are appended to the last match (rather than
  156.         replacing it).
  157.  
  158.         The initial search pattern may include wildcard characters and
  159.         may or may not include a file name extension.  The /NT switch
  160.         determines the files types matched (i.e. normal, hidden, system,
  161.         and/or directories), and the /NU and /NL switches control whether
  162.         matching files are displayed in upper or lowercase letters.  If
  163.         you enable directory matching using the /NT switch, directories
  164.         will be displayed with a trailing backslash.  This backslash can
  165.         be enabled or disabled with the /NB and /NC switches.  By de-
  166.         fault, only normal files are matched and matching files are
  167.         displayed in uppercase.
  168.  
  169.                                  Command History
  170.                                  ---------------
  171.  
  172.         Every time you execute a DOS command, the command is copied to
  173.         the command history for later retrieval.  If there isn't enough
  174.         room because of previously saved commands, Toddy will delete the
  175.  
  176.  
  177.  
  178.         oldest command or commands to make room.  You can prevent a
  179.         command from being saved to the command history by pressing
  180.         Ctrl-Enter (instead of Enter) to run the command.  You can copy a
  181.         command to the command history without running it by pressing F5
  182.         or Ctrl-K.  The up arrow key will retrieve the last command.
  183.         Repeatedly pressing the up arrow key will retrieve progressively
  184.         older commands.  The down arrow key retrieves newer commands (the
  185.         opposite of the up arrow key).  Other keys for scrolling through
  186.         the command history are listed in the Editing section above.
  187.         Commands are not saved to the command history if they are identi-
  188.         cal to the last command.  Also, Toddy can be configured to pre-
  189.         vent other types of commands from being saved.  See the descrip-
  190.         tions of the /HM, /HU, and /HA switches in the Switch Descrip-
  191.         tions section.  Alternatively, previous commands can be automati-
  192.         cally removed from the command history using the /HP, /HI, /HD,
  193.         /HK switches.  The command history may be written to a file or
  194.         loaded from a file with the /HW and /HR switches.  The current
  195.         history can be locked, freed (unlocked), or cleared with the /HL,
  196.         /HF, and /HC switches.  When the history is locked, commands are
  197.         no longer copied to it.
  198.  
  199.         The command history can be searched by matching the beginning
  200.         characters.  For instance, if you recently entered a long command
  201.         like:
  202.  
  203.           tcc -v -ms zorro init.obj graflib.lib extra.lib
  204.  
  205.         you can search for this line by typing the first few characters,
  206.         "tcc" for instance, and then pressing the Tab key.  If there is
  207.         more than one saved command that begins with "tcc", repeatedly
  208.         pressing Tab will find each occurrence.  If there are no more
  209.         occurrences, the display will not change.  You can search in the
  210.         reverse direction with Shift-Tab.  Searching in reverse is par-
  211.         ticularly useful if you've accidentally searched past the command
  212.         you were looking for by pressing the Tab key too many times.
  213.  
  214.         When using the up or down arrow keys to scroll through the com-
  215.         mand history, Toddy will "wrap around" from the oldest entry to
  216.         the newest, or from the newest to the oldest.  Toddy loads a
  217.         blank line just before wrapping.
  218.  
  219.         If you've just run a command from the history without modifying
  220.         it and you press the down arrow key before anything else, Toddy
  221.         will load the command from the history that follows the command
  222.         you just ran.  This is referred to in this document as "history
  223.         trace."  History tracing is useful for reentering multiple com-
  224.         mands.  For instance, if you've recently entered the commands:
  225.  
  226.           COPY *.* A:
  227.           DEL *.*
  228.  
  229.         and you want to run these two commands again, first find the COPY
  230.         command by typing "co" and pressing Tab.  When the COPY command
  231.         is displayed, run it.  Now you can recall the DEL command just by
  232.         pressing the Down arrow key.
  233.  
  234.  
  235.  
  236.  
  237.                              Command History Window
  238.                              ----------------------
  239.  
  240.         If you run Toddy without any command line arguments and Toddy has
  241.         already been installed,  Toddy will display a window in the
  242.         center of the screen showing all the commands currently saved in
  243.         the command history.  The Up and Down arrow keys scroll through
  244.         the list one line at a time, the Page-Up and Page-Down keys
  245.         scroll through the list a page at a time, and the Home and End
  246.         keys go to the first (oldest) and last (newest) commands.
  247.  
  248.         When you've found a command you want run or edit, position the
  249.         command to the highlighted center of the window and press the
  250.         Enter key.  The window will close and the command will be pre-
  251.         loaded to the input line.
  252.  
  253.         The colors of the command window can be set with the /AB, /AH,
  254.         and /AX switches.  Toddy automatically selects a size for the
  255.         window based on the current text mode, but you can explicitly
  256.         select a size with the /SR and /SC switches.
  257.  
  258.         Unlike other aspects of Toddy, the history window manipulates the
  259.         hardware directly and may not work on non-standard video systems.
  260.  
  261.                                 Chained Commands
  262.                                 ----------------
  263.  
  264.         The chain character allows you to enter multiple commands on a
  265.         single line.  The default chain character is Ctrl-T, but may be
  266.         changed with the /CC switch.  If the chain character was defined
  267.         to be the caret (^), the command "arce files1^arce files2" will
  268.         run the two consecutive commands "arce files1" and "arce files2".
  269.         Any number of chained commands may be entered on a single line.
  270.         Macros (described later) may also contain chained commands.
  271.         Within macros and in the run command (/R), you can use $t to
  272.         chain commands together.
  273.  
  274.         Press Ctrl-Break to cancel a sequence of executing chained com-
  275.         mands.  Pressing Ctrl-Break may interrupt a sequence of chained
  276.         commands even when you are inside an application.
  277.  
  278.                                      Macros
  279.                                      ------
  280.  
  281.         A macro is a user defined command that's automatically replaced
  282.         by a single command or multiple commands chained together.
  283.         Macros behave like small batch files.  Some advantages of macros
  284.         over batch files are that macros are executed faster (because
  285.         they're stored in memory, not on disk), macros generally use less
  286.         disk space (because multiple macros can be stored in a single
  287.         file), macros can be defined or redefined on the fly, and macros
  288.         can have any name (for example you could have a macro called DIR,
  289.         but not a batch file).  Some possible uses for macros are renam-
  290.         ing commands (like defining D to execute a DIR) and applying
  291.  
  292.  
  293.  
  294.         default arguments to commands (for instance automatically apply-
  295.         ing the /W switch to all DIR commands).  Macros will NOT work in
  296.         batch files.  Macros are defined with the /MD and /ME switches
  297.         and cleared with the /MU, /MF, and /MC switches.  Macros can also
  298.         be defined using the syntax:
  299.  
  300.           TODDY macro=text
  301.  
  302.         where "macro" is the name of the macro and all characters after
  303.         the equal sign are what the macro does.  This second syntax for
  304.         defining macros is equivalent to the /ME switch.  Similarly, a
  305.         macro can be undefined with the syntax:
  306.  
  307.           TODDY macro=
  308.  
  309.         You can also load and save macros to files with the /MR and /MW
  310.         switches.  Use the /ML switch to list the currently defined
  311.         macros.  Some simple macros might be:
  312.  
  313.           TODDY d=dir
  314.           TODDY dir=dir /w
  315.           TODDY /md'clear'del *.obj $t del *.lst $t del *.map'
  316.  
  317.         The first example above makes D act like a DIR command.  The next
  318.         example automatically applies the /W switch to all DIR commands.
  319.         The last example creates a CLEAR command to delete all OBJ, LST,
  320.         and MAP files from the current directory.  The first two examples
  321.         use one format for defining macros and the third example uses the
  322.         other format.  The third example uses the special character
  323.         sequence "$t" to chain multiple commands together.
  324.  
  325.         Macros can access command line arguments in the same way as batch
  326.         files.  The first 99 arguments are retrieved using the parameters
  327.         $1 to $99.  The special parameter $* returns all arguments start-
  328.         ing after the largest previously retrieved argument.  For in-
  329.         stance, if you referred to $11 in your macro, a $* will return
  330.         all arguments starting with $12.  Also, you can return all argu-
  331.         ments starting with a particular argument number using the syntax
  332.         $n*, where "n" is the starting argument number.  For instance,
  333.         $7* will return all arguments starting with the seventh.  The
  334.         character indicating a parameter, a dollar sign by default, can
  335.         be changed with the /CP switch; and the character for multiple
  336.         arguments, a asterisk by default, can be changed with the /CM
  337.         switch.
  338.  
  339.         A more useful definition of the DIR macro above would use a
  340.         parameter as follows:
  341.  
  342.           TODDY dir=dir $1 /w
  343.  
  344.         With this macro definition, a DIR without arguments would expand
  345.         to "DIR /W", and a "DIR *.COM" would expand to "DIR *.COM /W".
  346.         Another example:
  347.  
  348.           TODDY tcc=tcc -v $* userlib.lib
  349.  
  350.  
  351.  
  352.  
  353.         This macro replaces TCC with one that automatically specifies
  354.         multiple command line arguments.  If you ran "tcc -O zipper",
  355.         you'd actually be running "tcc -v -O zipper userlib.lib".
  356.  
  357.         In addition to the $t used earlier, there are several other
  358.         special parameters:
  359.  
  360.           $$           replaced with parameter character ($)
  361.           $b           replaced with bar (|)
  362.           $l           replaced with less-than (<)
  363.           $g           replaced with greater-than (>)
  364.           $q           replaced with removable quote (see Quotes section)
  365.           $s           parameter sink
  366.  
  367.         The first five parameters above are simply replaced by the speci-
  368.         fied character.  These parameters are necessary if you are creat-
  369.         ing a macro at the DOS prompt or in a batch file, because Toddy
  370.         normally uses and absorbs the parameter and quote character, and
  371.         DOS normally uses and absorbs the bar, greater, and less-than
  372.         characters.  The parameter sink works like the $* parameter
  373.         except an empty string is returned.  The parameter sink is some-
  374.         times necessary because Toddy automatically appends unreferenced
  375.         trailing arguments, as if there was $* automatically appended all
  376.         macros.  To suppress any trailing arguments, you must use the
  377.         parameter sink.  See the two DIR macros below for an example of
  378.         using the $s parameter.  All of the special parameters using a
  379.         letter can use an upper or lowercase letter.
  380.  
  381.         You can also expand a macro within the body of another macro.  To
  382.         do this, place the name of the macro to be expanded in parenthe-
  383.         ses after a dollar sign.  For instance:
  384.  
  385.           TODDY diropt=/w
  386.           TODDY dir=dir $* $(diropt)
  387.  
  388.         In this example, the DIR switches are saved in the macro "diropt"
  389.         and then added to the end of the "dir" macro.  Now you could
  390.         change the switches used in the dir macro simply by changing the
  391.         diropt setting.  This document refers to macros used in this
  392.         manner as variables.  The characters used to enclose the macro
  393.         name (parentheses) can be changed with the /CV and /CW switches.
  394.  
  395.         Macros may be defined multiple times.  The most recent definition
  396.         always takes precedence.  A macro may also call another macro.
  397.         If a macro calls a macro of the same name, the most recent defi-
  398.         nition (prior to the calling macro) will be called.  For in-
  399.         stance, if the following macros were defined:
  400.  
  401.           TODDY dir=dir $* /w
  402.           TODDY dir=cls $s $t dir $*
  403.  
  404.         a DIR command will call the second macro (because it's the most
  405.         recent definition).  This macro clears the screen (with CLS) and
  406.         calls DIR.  Since DIR has an earlier definition (the first
  407.  
  408.  
  409.  
  410.         macro), it's also called as a macro.  The net effect of running a
  411.         DIR command after defining the two macros above is to clear the
  412.         screen and perform a DOS DIR command with the /W switch.  The
  413.         parameter sink ($s) is necessary in the second macro to prevent
  414.         any arguments from being appended to the CLS command.
  415.  
  416.         If a command is preceded by the "literal character," it is not
  417.         interpreted as a macro.  The literal character is undefined by
  418.         default, but can be defined with the /CL switch.  If the literal
  419.         character was defined to be an exclamation mark, running "!DIR"
  420.         will execute the standard DOS directory command regardless of any
  421.         DIR macro definitions.
  422.  
  423.         Toddy beeps, cancels all running macros, and returns an empty
  424.         input line if: 1. the macros are nested too deeply, 2. the macro
  425.         expansion is too long, or 3. the quote parameter ($q) or chain
  426.         parameter ($t) are used and no quote or chain character is de-
  427.         fined.  The macro expansion may be too long internally (see the
  428.         /B switch) or too long for the command line (127 bytes for COM-
  429.         MAND.COM, and 255 bytes for 4DOS and NDOS).  A potential macro
  430.         nest problem is circular macro references.  For instance:
  431.  
  432.           TODDY a=b
  433.           TODDY b=a
  434.  
  435.         You will always get an error if you try to run one of these two
  436.         macros because these macros continuously call each other until
  437.         the macro nest level is exceeded.
  438.  
  439.                                      Quotes
  440.                                      ------
  441.  
  442.         Macro arguments are defined as sequences of characters separated
  443.         by spaces, so there's no way retrieve an argument that contains
  444.         spaces unless you use quotes.  All characters inside and includ-
  445.         ing double quotes (") are treated as a single argument.  For
  446.         instance, if you defined the following macro:
  447.  
  448.            TODDY g=grep $1 *.*
  449.  
  450.         the following command will work properly because quotes are used:
  451.  
  452.            g "a blank"
  453.  
  454.         Toddy recognizes two kinds of quotes: text and removable.  Text
  455.         quotes work as described above and removable quotes work similar-
  456.         ly, but are removed when the line is evaluated.  The default
  457.         removable quote is the back quote character (`).  If you defined
  458.         the following macro:
  459.  
  460.           TODDY e=echo ($1)
  461.  
  462.         running:
  463.  
  464.           e `a b c d`
  465.  
  466.  
  467.  
  468.  
  469.         will display:
  470.  
  471.           (a b c d)
  472.  
  473.         Chain characters are not evaluated inside of quoted arguments,
  474.         but parameters ($1, $2, $t, etc.) are.  If you want to use the
  475.         parameter character inside of a quoted string, use the special
  476.         parameter $$.
  477.  
  478.         The text and removable quote characters can be redefined with the
  479.         /CX and /CQ switches.  You can also define a second text quote
  480.         character with the /CY switch.
  481.  
  482.                                    Key Macros
  483.                                    ----------
  484.  
  485.         Key macros are similar to normal macros, but are assigned to and
  486.         invoked by a keystroke.  Key macros can perform operations spe-
  487.         cific to Toddy (like moving the cursor or modifying the command
  488.         history), running DOS commands, or some combination of both.  All
  489.         the default Toddy key assignments are saved as key macros, and
  490.         may be changed.  Key macros may consist of any combination of
  491.         normal letters (like '5' and 'B'), non-printable keys (like Enter
  492.         and F1), and internal commands (like 'HistoryOlder' and 'Delete-
  493.         Line').  Key macros are defined the same way as normal macros.
  494.         The first part of a key macro is always the key that is to be
  495.         reassigned.  You can only reassign the "non-printable" keys, like
  496.         Ctrl- and Alt- key combinations, the function keys, arrow keys,
  497.         Enter, Tab, etc.  Key macros are defined with the /KD and /KE
  498.         switches and cleared with the /KF, /KU, and /KC switches.  Key
  499.         macros can also be defined using the syntax:
  500.  
  501.           TODDY key=text
  502.  
  503.         where "key" is an assignable key and all characters after the
  504.         equal sign are the characters that should be typed or commands
  505.         that should be performed.  This second syntax for defining key
  506.         macros is equivalent to the /KE switch.  Similarly, a key macro
  507.         can be undefined with the syntax:
  508.  
  509.           TODDY key=
  510.  
  511.         You can also load and save key macros to files with the /KR and
  512.         /KW switches.  Use the /KL switch to list the current key assign-
  513.         ments.
  514.  
  515.         You may define multiple assignments for the same key, however
  516.         only the most recent assignment is active.  Defining a key macro
  517.         that refers to itself will cause an infinite loop, though Toddy
  518.         will usually detect this situation and abort the key macro.  You
  519.         can also press Ctrl-Break to abort a key macro.
  520.  
  521.         Non-printable keys and internal commands are specified using
  522.         special names in brackets.  The following is a complete list of
  523.  
  524.  
  525.  
  526.         key names.  These are the keys that can be reassigned and used
  527.         within the body of key macros:
  528.  
  529.           [Backspace]           [Alt-D]                [Shift-F4]
  530.           [Tab]                 [Alt-E]                [Shift-F5]
  531.           [Enter]               [Alt-F]                [Shift-F6]
  532.           [Escape]              [Alt-G]                [Shift-F7]
  533.           [Shift-Tab]           [Alt-H]                [Shift-F8]
  534.           [Ctrl-Enter]          [Alt-I]                [Shift-F9]
  535.           [Ctrl-Slash]          [Alt-J]                [Shift-F10]
  536.           [Ctrl-Minus]          [Alt-K]                [Ctrl-F1]
  537.           [Ctrl-Backspace]      [Alt-L]                [Ctrl-F2]
  538.           [Alt-Minus]           [Alt-M]                [Ctrl-F3]
  539.           [Alt-Equal]           [Alt-N]                [Ctrl-F4]
  540.           [Ctrl-2]              [Alt-O]                [Ctrl-F5]
  541.           [Ctrl-6]              [Alt-P]                [Ctrl-F6]
  542.           [Alt-0]               [Alt-Q]                [Ctrl-F7]
  543.           [Alt-1]               [Alt-R]                [Ctrl-F8]
  544.           [Alt-2]               [Alt-S]                [Ctrl-F9]
  545.           [Alt-3]               [Alt-T]                [Ctrl-F10]
  546.           [Alt-4]               [Alt-U]                [Alt-F1]
  547.           [Alt-5]               [Alt-V]                [Alt-F2]
  548.           [Alt-6]               [Alt-W]                [Alt-F3]
  549.           [Alt-7]               [Alt-X]                [Alt-F4]
  550.           [Alt-8]               [Alt-Y]                [Alt-F5]
  551.           [Alt-9]               [Alt-Z]                [Alt-F6]
  552.           [Ctrl-A]              [Left]                 [Alt-F7]
  553.           [Ctrl-B]              [Right]                [Alt-F8]
  554.           [Ctrl-C]              [Up]                   [Alt-F9]
  555.           [Ctrl-D]              [Down]                 [Alt-F10]
  556.           [Ctrl-E]              [PageUp]
  557.           [Ctrl-F]              [PageDown]
  558.           [Ctrl-G]              [Home]
  559.           [Ctrl-H]              [End]
  560.           [Ctrl-I]              [Ctrl-Left]
  561.           [Ctrl-J]              [Ctrl-Right]
  562.           [Ctrl-K]              [Ctrl-PageUp]
  563.           [Ctrl-L]              [Ctrl-PageDown]
  564.           [Ctrl-M]              [Ctrl-Home]
  565.           [Ctrl-N]              [Ctrl-End]
  566.           [Ctrl-O]              [Insert]
  567.           [Ctrl-P]              [Delete]
  568.           [Ctrl-Q]              [F1]
  569.           [Ctrl-R]              [F2]
  570.           [Ctrl-S]              [F3]
  571.           [Ctrl-T]              [F4]
  572.           [Ctrl-U]              [F5]
  573.           [Ctrl-V]              [F6]
  574.           [Ctrl-W]              [F7]
  575.           [Ctrl-X]              [F8]
  576.           [Ctrl-Y]              [F9]
  577.           [Ctrl-Z]              [F10]
  578.           [Alt-A]               [Shift-F1]
  579.           [Alt-B]               [Shift-F2]
  580.           [Alt-C]               [Shift-F3]
  581.  
  582.  
  583.  
  584.  
  585.         You may not be able to assign some the keys above (like Ctrl-S
  586.         and Ctrl-P) unless you use the /KT switch.  Some possible keys
  587.         are not listed (like [F11] and [F12]) because DOS doesn't recog-
  588.         nize these keys.  Key macros may also directly call many internal
  589.         Toddy commands.  The following is a complete list of available
  590.         internal commands:
  591.  
  592.           [CursorLeft]           move the cursor left
  593.           [CursorRight]          move the cursor right
  594.           [CursorNext]           move the cursor to the next word
  595.           [CursorPrevious]       move the cursor to the previous word
  596.           [CursorHome]           move the cursor to the start of the line
  597.           [CursorEnd]            move the cursor to the end of the line
  598.           [DeleteCharacter]      delete the character under the cursor
  599.           [DeleteBackward]       delete the character left of the cursor
  600.           [DeleteNext]           delete the word left of the cursor
  601.           [DeletePrevious]       delete the word right of the cursor
  602.           [DeleteHome]           delete all characters left of the cursor
  603.           [DeleteEnd]            delete all chars right of the cursor
  604.           [DeleteLine]           delete entire line
  605.           [InsertOn]             turn insert mode on
  606.           [InsertOff]            turn insert mode off (overwrite mode)
  607.           [InsertToggle]         toggle the insert state
  608.           [HistorySkip]          don't add line to history when run
  609.           [HistoryReset]         add line to history when run
  610.           [HistoryAdd]           add line to history right now
  611.           [HistoryDelete]        delete current history line
  612.           [HistoryClear]         erase the entire history
  613.           [HistoryOlder]         load the next older history line
  614.           [HistoryNewer]         load the next newer history line
  615.           [HistoryTrace]         load the next older history trace line
  616.           [HistoryOldest]        load the oldest history line
  617.           [HistoryNewest]        load the newest history line
  618.           [HistoryForward]       search newer history entries
  619.           [HistoryBackward]      search older history entries
  620.           [NameForward]          find next matching file name
  621.           [NameBackward]         find previous matching file name
  622.           [NameAppend]           find next matching file name and append
  623.           [TemplateCharacter]    load next DOS template character
  624.           [TemplateAppend]       append rest of DOS template
  625.           [TemplateInsert]       insert DOS template characters
  626.           [TemplateSkip]         skip DOS template characters
  627.           [TemplateEOF]          insert EOF character
  628.           [Run]                  run the current command
  629.           [RunDirect]            run raw command (no processing)
  630.           [Mask]                 next letter is control character
  631.  
  632.         You can also insert a literal character by placing a number (the
  633.         ASCII code of the character) in brackets.  For instance, you can
  634.         insert a Tab character (ASCII code 9) with [9].  Note: for ASCII
  635.         code 13 (carriage return), you must use "[Mask]M" instead.  The
  636.         characters used to surround key names, internal commands, and
  637.         literal characters, which are brackets by default, can be changed
  638.         with the /CB and /CE switches.
  639.  
  640.  
  641.  
  642.  
  643.         The default key macros / assignments are:
  644.  
  645.           [Left]=[CursorLeft]
  646.           [Right]=[TemplateCharacter]
  647.           [Up]=[HistoryOlder]
  648.           [Down]=[HistoryTrace]
  649.           [Home]=[CursorHome]
  650.           [End]=[CursorEnd]
  651.           [PageUp]=[HistoryOldest]
  652.           [PageDown]=[HistoryNewest]
  653.           [Ctrl-Left]=[CursorPrevious]
  654.           [Ctrl-Right]=[CursorNext]
  655.           [Ctrl-Home]=[DeleteHome]
  656.           [Ctrl-End]=[DeleteEnd]
  657.           [Ctrl-PageUp]=[HistoryOldest]
  658.           [Ctrl-PageDown]=[HistoryNewest]
  659.           [Tab]=[HistoryBackward]
  660.           [Shift-Tab]=[HistoryForward]
  661.           [Backspace]=[DeleteBackward]
  662.           [Ctrl-Backspace]=[DeletePrevious]
  663.           [Insert]=[InsertToggle]
  664.           [Escape]=[DeleteLine]
  665.           [Delete]=[DeleteCharacter]
  666.           [Enter]=[Run]
  667.           [Ctrl-Enter]=[HistorySkip][RunDirect]
  668.           [F1]=[TemplateCharacter]
  669.           [F2]=[TemplateInsert]
  670.           [F3]=[TemplateAppend]
  671.           [F4]=[TemplateSkip]
  672.           [F5]=[HistoryAdd][DeleteLine]
  673.           [F6]=[TemplateEOF]
  674.           [Alt-F7]=[HistoryClear]
  675.           [F9]=[NameForward]
  676.           [Shift-F9]=[NameBackward]
  677.           [F10]=[NameAppend]
  678.           [Ctrl-D]=[HistoryDelete]
  679.           [Ctrl-K]=[HistoryAdd][DeleteLine]
  680.           [Ctrl-L]=[DeletePrevious]
  681.           [Ctrl-R]=[DeleteNext]
  682.           [Ctrl-V]=[Mask]
  683.  
  684.         Some systems assign Tab (instead of F9) to file name matching.
  685.         To switch F9 and Tab, use the following key macros:
  686.  
  687.           [Tab]=[NameMatch]
  688.           [Shift-Tab]=[NamePrevious]
  689.           [F9]=[HistoryReverse]
  690.           [Shift-F9]=[HistoryForward]
  691.  
  692.         Since searching with a blank line finds all occurences, you may
  693.         want to assign the up and down arrow keys to forward and reverse
  694.         command history searching:
  695.  
  696.           [Up]=[HistoryReverse]
  697.  
  698.  
  699.  
  700.           [Down]=[HistoryForward]
  701.  
  702.         The default assignments for PageUp (and PageDown) may not be very
  703.         useful, so try the following assignment for PageUp:
  704.  
  705.           [PageUp]=[DeleteLine]toddy[Enter]
  706.  
  707.         You can implement the basic Wordstar commands commands with the
  708.         following assignments:
  709.  
  710.           [Ctrl-S]=[CursorLeft]
  711.           [Ctrl-D]=[CursorRight]
  712.           [Ctrl-E]=[HistoryOlder]
  713.           [Ctrl-X]=[HistoryNewer]
  714.           [Ctrl-A]=[CursorPrevious]
  715.           [Ctrl-F]=[CursorNext]
  716.           [Ctrl-G]=[DeleteCharacter]
  717.           [Ctrl-Y]=[DeleteLine]
  718.  
  719.         To use the Wordstar key Ctrl-S listed above, you will probably
  720.         have to use the /KT (and possibly /BS) switch first.
  721.  
  722.                                     Switches
  723.                                     --------
  724.  
  725.         Switches are used to configure Toddy before or after it has been
  726.         installed.  A summary of the Toddy command line switches can be
  727.         displayed by running:
  728.  
  729.           TODDY /?
  730.  
  731.         In the switch descriptions of the following sections, "d" denotes
  732.         a decimal digit, "x" denotes a hexadecimal digit, "'s'" denotes a
  733.         string in quotes, and "file" denotes a file name.  The number of
  734.         decimal or hexadecimal digits serve only as a general reference
  735.         to the magnitude of the expected number -- in most cases fewer
  736.         digits are allowed.
  737.  
  738.                                  Switch Summary
  739.                                  --------------
  740.  
  741.         Installation:
  742.  
  743.           /Bddddd      input buffer size
  744.           /BSddd       restricted input buffer size
  745.           /Mddd        multiplex number
  746.           /Q           quiet mode
  747.           /V           verbose mode
  748.           /E           enable Toddy
  749.           /D           disable Toddy
  750.           /U           uninstall Toddy
  751.           /W           write switches to TODDY.COM
  752.           /ORfile      read configuration file
  753.           /OWfile      write configuration file
  754.           /KTd         keyboard input type
  755.  
  756.  
  757.  
  758.           /UI          uppercase ignored
  759.           /US          uppercase significant
  760.           /WU          public Windows data
  761.           /WP          private Windows data
  762.  
  763.         Attributes (colors):
  764.  
  765.           /ATxx        text attribute
  766.           /ACxx        cursor attribute
  767.           /AExx        end attribute
  768.  
  769.           /ABxx        command window border
  770.           /AHxx        command window highlight
  771.           /AXxx        command window text
  772.  
  773.         Cursor Type:
  774.  
  775.           /TC          use custom cursor
  776.           /TS          use system cursor
  777.           /TExxxx      entry cursor type
  778.           /TIxxxx      insert cursor type
  779.           /TOxxxx      overwrite cursor type
  780.           /TXxxxx      exit cursor type
  781.  
  782.         Characters:
  783.  
  784.           /CBddd       key command begin character
  785.           /CEddd       key command end character
  786.           /CVddd       start of variable character
  787.           /CWddd       end of variable character
  788.           /CQddd       quote character
  789.           /CXddd       text quote character one
  790.           /CYddd       text quote character two
  791.           /CPddd       parameter character
  792.           /CMddd       multiple argument character
  793.           /CLddd       literal character
  794.           /CCddd       chain character
  795.  
  796.         Insert Mode:
  797.  
  798.           /II          select insert mode
  799.           /IO          select overwrite mode
  800.           /IR          reset insert
  801.           /IP          preserve insert
  802.  
  803.         File Name Completion:
  804.  
  805.           /NSddddd     file name match size
  806.           /NTxx        file name match types
  807.           /NL          display names in lowercase letters
  808.           /NU          display names in uppercase letters
  809.           /NC          clean directory name
  810.           /NB          add backslash to directory name
  811.  
  812.         History Window:
  813.  
  814.  
  815.  
  816.  
  817.           /S           select a command (open window)
  818.           /SCddd       window columns
  819.           /SRddd       window rows
  820.  
  821.         History:
  822.  
  823.           /HSddddd     command history size
  824.           /HMddd       minimum command length
  825.           /HP          pure command history
  826.           /HI          impure command history
  827.           /HD          delete command from history when run
  828.           /HK          keep command in history when run
  829.           /HU          save unique commands
  830.           /HA          save all commands
  831.           /HL          lock history
  832.           /HF          free history
  833.           /HN          no history trace recover
  834.           /HT          history trace recover
  835.           /HC          clear history
  836.           /HRfile      read history from file
  837.           /HWfile      write history to file
  838.  
  839.         Macros:
  840.  
  841.           /MSddddd     macro table size
  842.           /MNddd       maximum macro nest
  843.           /MD's's'     define macro
  844.           /ME's's'     exchange (replace) macro
  845.           /MU's'       undefine macro
  846.           /MF's'       forget macro
  847.           /MC          clear all macros
  848.           /ML          list macros
  849.           /MRfile      read macros from file
  850.           /MWfile      write macros to file
  851.  
  852.         Key Macros:
  853.  
  854.           /KSddddd     key macro stack size
  855.           /KD's's'     define key macro
  856.           /KE's's'     exchange key macro
  857.           /KU's'       undefine key macro
  858.           /KF's'       forget key macro
  859.           /KC          clear all key macros
  860.           /KL          list key macros
  861.           /KRfile      read key macros from file
  862.           /KWfile      write key macros to file
  863.  
  864.         Variables:
  865.  
  866.           /VLddd       maximum variable length
  867.           /VNddd       maximum variable nest
  868.  
  869.         Miscellaneous:
  870.  
  871.  
  872.  
  873.           /A           display memory allocations
  874.           /R's'        run a command
  875.  
  876.                                Switch Descriptions
  877.                                -------------------
  878.  
  879.         /A        Display memory allocations.  The first three numbers
  880.                   displayed are the memory allocated for the command
  881.                   history, macro defintions, and file name completion.
  882.                   The next three numbers are the total heap memory
  883.                   (usually the sum of the first three numbers), the
  884.                   memory used by macro definitions, and the amount of
  885.                   available heap memory.  The next four numbers are the
  886.                   maximum macro nest, size of variable data areas, the
  887.                   keyboard stack size, and the input buffer size.  The
  888.                   last number is the total bytes used by all the data
  889.                   areas.  All available heap memory can be used for
  890.                   macros.  Key macros are allocated from the same pool of
  891.                   memory as normal macros.  Whatever memory isn't used by
  892.                   macros is used for the command history (or the file
  893.                   name completion commands if needed).  See the Notes
  894.                   section for more information on memory usage.
  895.  
  896.         /ABxx     Set the attribute of the command history window border.
  897.                   The /AC switch describes attribute bytes.  The default
  898.                   is /AB7.
  899.  
  900.         /ACxx     Set the attribute of the character under the cursor.
  901.                   The first digit of the attribute byte is the background
  902.                   color and the second digit is the foreground color.
  903.                   Color values of 0 to 7 correspond to black, blue, green
  904.                   cyan, red, magenta, brown, and white.  Adding 8 to the
  905.                   lower digit makes the foreground color brighter.
  906.                   Adding 8 to the upper digit usually makes the fore-
  907.                   ground blink.  The default is /AC7 (white on black).
  908.  
  909.         /AExx     Set the attribute of the blanks following the text.
  910.                   The /AC switch describes attribute bytes.  The default
  911.                   is /AE7.
  912.  
  913.         /AHxx     Set the attribute of the command history select line
  914.                   (i.e. the "highlight" color).  The /AC switch describes
  915.                   attribute bytes.  The default is /AH70.
  916.  
  917.         /ATxx     Set the attribute of the text.  The /AC switch de-
  918.                   scribes attribute bytes.  The default is /AT7.
  919.  
  920.         /AHxx     Set the attribute of the command history text.  The /AC
  921.                   switch describes attribute bytes.  The default is /AX7.
  922.  
  923.         /Bddddd   Set the input buffer size.  This is the number of bytes
  924.                   reserved for entering commands and expanding macros.
  925.                   If there is an error running a macro, you may have to
  926.                   make this number larger.  The minimum value is 255 and
  927.                   the default is /B512.  If you don't use macros, or only
  928.  
  929.  
  930.  
  931.                   use short macros, you could conserve memory by reducing
  932.                   this number to the minimum.
  933.  
  934.         /BSddd    Set the restricted input buffer size.  If this switch
  935.                   is used, Toddy will only process input when the speci-
  936.                   fied number of characters are requested.  This switch
  937.                   is particularly useful in disabling Toddy when running
  938.                   several DOS commands, like LABEL, DEBUG, and FORMAT.
  939.                   If you are using type 7 input (see the /KT switch), you
  940.                   may have to use the /BS switch to enable Ctrl-Break
  941.                   within these DOS commands.  If you are using 4DOS or
  942.                   NDOS, use /BS255, otherwise use /BS128.  The default is
  943.                   /BS0 (unrestricted input size).
  944.  
  945.         /CBddd    Define key command begin character.  This is the char-
  946.                   acter that starts one of the special names (keys or
  947.                   internal commands) used by key macros.  The number is
  948.                   the ASCII code of the character.  The default is /CB91
  949.                   (a left bracket).
  950.  
  951.         /CCddd    Define the chain character.  The chain character is
  952.                   used to enter multiple commands on single line or in a
  953.                   macro.  The number is the ASCII code of the character.
  954.                   The chain character cannot be a space.  The default is
  955.                   /CC20 (Ctrl-T).
  956.  
  957.         /CEddd    Define key command end character.  This is the charac-
  958.                   ter that ends one of the special names (keys or inter-
  959.                   nal commands) used by key macros.  The number is the
  960.                   ASCII code of the character.  The default is /CE93 (a
  961.                   right bracket).
  962.  
  963.         /CLddd    Define the literal character.  A literal character
  964.                   forces Toddy to pass a command directly to DOS without
  965.                   interpreting it as a macro.  The number is the ASCII
  966.                   code of the character.  The literal character cannot be
  967.                   a space.  The default is /CL0 (no literal character
  968.                   defined).
  969.  
  970.         /CMddd    Define the multiple argument character.  The multiple
  971.                   argument character is used with regular macro parame-
  972.                   ters to refer to all following arguments.  The number
  973.                   is the ASCII code of the character.  The multiple
  974.                   argument character cannot be a space.  The default is
  975.                   /CM42 (an asterisk).
  976.  
  977.         /CPddd    Define the parameter character.  This is the character
  978.                   used to specify parameters within macros.  The number
  979.                   is the ASCII code of the character.  The parameter
  980.                   character cannot be a space.  The default is /CP36 (a
  981.                   dollar sign).
  982.  
  983.         /CQddd    Define the removable quote character.  This character
  984.                   is primarily used to delimit macro parameters contain-
  985.                   ing spaces or chain characters.  The number is the
  986.  
  987.  
  988.  
  989.                   ASCII code of the character.  The default is /CP96 (a
  990.                   back quote).
  991.  
  992.         /CVddd    Define the variable begin character.  This is the
  993.                   character that starts a name of a macro that is to be
  994.                   expanded inside the body of another macro.  The number
  995.                   is the ASCII code of the character.  The default is
  996.                   /CV40 (a left parenthesis).
  997.  
  998.         /CWddd    Define the variable end character.  This is the charac-
  999.                   ter that ends the name of a macro that is to be expand-
  1000.                   ed inside the body of another macro.  The number is the
  1001.                   ASCII code of the character.  The default is /CW41 (a
  1002.                   right parenthesis).
  1003.  
  1004.         /CXddd    Define the text quote character.  This character delim-
  1005.                   its macro parameters containing spaces or chain charac-
  1006.                   ters.  The number is the ASCII code of the character.
  1007.                   The default is /CP34 (a double quote).
  1008.  
  1009.         /CYddd    Define the alternate text quote character.  This char-
  1010.                   acter delimits macro parameters containing spaces or
  1011.                   chain characters.  The number is the ASCII code of the
  1012.                   character.  The default is /CP0 (undefined).
  1013.  
  1014.         /D        Disable the resident Toddy.  All command input will be
  1015.                   performed by DOS as if Toddy wasn't installed.
  1016.  
  1017.         /E        Enable the resident Toddy.  This switch turns off the
  1018.                   /D switch.
  1019.  
  1020.         /HA       Save all commands to the command history.  This switch
  1021.                   turns off the /HU switch.  This is the default.
  1022.  
  1023.         /HC       Clear command history.  All saved commands are deleted.
  1024.                   If you want to save a sequence of DOS commands as a
  1025.                   batch file (with the /HW switch), you could use this
  1026.                   switch to first clear any previously saved commands.
  1027.                   You can also clear the command history by pressing
  1028.                   Alt-F7.
  1029.  
  1030.         /HD       Command history delete.  When a command is selected and
  1031.                   run from the command history, it is deleted from the
  1032.                   command history (though it will usually be saved back
  1033.                   to the top of the history).  The difference between
  1034.                   this switch and /HP is that this switch only deletes a
  1035.                   previous command when it has been selected, while /HP
  1036.                   deletes previous (identical) commands whether they've
  1037.                   been selected or you've typed in a new command from
  1038.                   scratch.  This is switch is the default.
  1039.  
  1040.         /HK       Command history keep.  Commands that are selected and
  1041.                   run from the command history will not be deleted.  This
  1042.                   switch turns off the /HD switch.
  1043.  
  1044.  
  1045.  
  1046.         /HF       Free the command history.  Commands will be saved to
  1047.                   the command history normally.  This switch turns off
  1048.                   the /HL switch.
  1049.  
  1050.         /HI       Impure command history.  Identical commands will not be
  1051.                   deleted from the command history.  This switch turns
  1052.                   off the /HP switch.
  1053.  
  1054.         /HL       Lock the command history.  This switch prevents further
  1055.                   commands from being saved to the command history.  You
  1056.                   can unlock the history with the /HF switch.
  1057.  
  1058.         /HMddd    Set the minimum command length.  All commands that are
  1059.                   shorter than this value are not saved to the command
  1060.                   history.  This switch is useful if you don't want to
  1061.                   save trivial commands like DIR or CLS.  The default is
  1062.                   /HM0 (all commands are saved).
  1063.  
  1064.         /HN       No history trace recover.  If the history cannot be
  1065.                   traced from the last command, the down arrow key will
  1066.                   do nothing.
  1067.  
  1068.         /HP       Pure command history.  This switch forces Toddy to
  1069.                   delete all duplicate saved commands in the command
  1070.                   history, and when a new command is saved, to check for
  1071.                   and delete any previously saved identical commands.
  1072.  
  1073.         /HRfile   Read the command history from a file.  Each line of the
  1074.                   specified file is added to the command history.  If the
  1075.                   command history is not large enough, older lines are
  1076.                   deleted to make room.  The normal criteria for saving
  1077.                   commands (like minimum length) are ignored.  The file
  1078.                   may be created from scratch or be a previously saved
  1079.                   history.  The file must be a standard text file.
  1080.  
  1081.         /HSddddd  Set the command history size.  The command history size
  1082.                   is the number of bytes reserved for saving commands.
  1083.                   If you don't use the command history, you can conserve
  1084.                   memory by setting the size to 0 with /HS0.  The default
  1085.                   is /HS256.
  1086.  
  1087.         /HT       History trace recover.  If the history cannot be
  1088.                   traced, the down arrow will load the next newer command
  1089.                   from the command history (or wrap around to the oldest
  1090.                   entry).  This is the default setting.
  1091.  
  1092.         /HU       Save unique commands only.  Toddy will scan the command
  1093.                   history and only save a command if it's different than
  1094.                   all the other saved commands.  This switch has the
  1095.                   opposite effect of the /HA switch.
  1096.  
  1097.         /HWfile   Write the command history to a file.  All commands
  1098.                   stored in the command history are written to the speci-
  1099.                   fied file.  The commands are saved as a standard text
  1100.                   file.  This switch can be used to run a sequence of DOS
  1101.  
  1102.  
  1103.  
  1104.                   commands and then save them as a batch file.  The file
  1105.                   can also be reloaded with the /HR switch.
  1106.  
  1107.         /II       Select insert mode for editing.  This is the default
  1108.                   mode.
  1109.  
  1110.         /IO       Select overwrite mode for editing.
  1111.  
  1112.         /IP       Preserve the insert/overwrite mode between commands.
  1113.                   The insert or overwrite mode is preserved from the last
  1114.                   time a command was entered.  This switch has the oppo-
  1115.                   site effect of the /IR switch.
  1116.  
  1117.         /IR       Reset the insert/overwrite mode between commands.  Each
  1118.                   time a command is entered, the mode will be set to
  1119.                   insert or overwrite (depending on the current mode when
  1120.                   this switch is used).  This switch has the opposite
  1121.                   effect of the /IP switch.  This is the default.
  1122.  
  1123.         /KC       Clear all key macro definitions.  This switch can be
  1124.                   used to delete all currently defined key macros, or to
  1125.                   ignore any key macros saved to TODDY.COM when install-
  1126.                   ing.
  1127.  
  1128.         /KD's's'  Define a key macro.  This parameter uses two fields,
  1129.                   the key name and the replacement text.  The first
  1130.                   character after the /KD is the definition delimiter.
  1131.                   Though this delimiter is usually a quote (or double
  1132.                   quote), it can be any character not used in the key
  1133.                   name or replacement text.  There are three delimiters:
  1134.                   one at the start of the key name, one separating the
  1135.                   key name from the replacement text, and one at the end
  1136.                   of the replacement text.  The key name must be one of
  1137.                   the names listed in the Key Macros section.  The re-
  1138.                   placement text can contain normal characters, other
  1139.                   keys, or internal commands.  Note: this switch does not
  1140.                   remove any previous definitions of the key macro.  Use
  1141.                   the /KE switch to replace the most recent definition of
  1142.                   a key macro.  Key macros are described in the Key
  1143.                   Macros section.
  1144.  
  1145.         /KE's's'  Exchange a key macro.  This switch replaces the most
  1146.                   recent definition of a key macro, which is equivalent
  1147.                   to undefining then defining a key macro.  The syntax
  1148.                   and usage are identical to the /ED switch.
  1149.  
  1150.         /KF's'    Forget a key macro.  This switch clears all definitions
  1151.                   of a key macro (not just the most recent definition).
  1152.                   The key name is delimited similarly to the key macro
  1153.                   definition switch (/KD), except there is no replacement
  1154.                   text.  Use the /KU switch to clear only the most recent
  1155.                   definition.
  1156.  
  1157.         /KL       List key macros.  All currently defined key macros will
  1158.                   be displayed.
  1159.  
  1160.  
  1161.  
  1162.  
  1163.         /KRfile   Read key macros from a file.  The file must be a stand-
  1164.                   ard text file.  The file may be created by the user or
  1165.                   by saving key macros with the /KW switch.  Each line of
  1166.                   the file contains a single key macro definition.  The
  1167.                   key macros must be defined in the form:
  1168.  
  1169.                     key=text
  1170.  
  1171.                   where "key" is the key to assign and "text" is the
  1172.                   replacement text of the key macro.  All characters
  1173.                   after the first equals sign become part of the key
  1174.                   macro text.
  1175.  
  1176.         /KSddddd  Set the key macro stack size.  The replacement text of
  1177.                   key macros is limited to this setting.  This setting
  1178.                   does NOT affect the available space for saving key
  1179.                   macro definitions.  Key macro definitions are saved in
  1180.                   the same area as regular macros.  The minimum value is
  1181.                   2.  The default is /KS128.
  1182.  
  1183.         /KTd      Set the keyboard input type.  The two valid types are 7
  1184.                   and 8.  Type 7 input allows processing of several keys
  1185.                   normally interpreted by DOS: Ctrl-C, Ctrl-P, and Ctrl-
  1186.                   S.  However, type 7 input may not allow you to break
  1187.                   out of some DOS commands with Ctrl-Break.  Type 8 input
  1188.                   does not allow you to process the keys above, but does
  1189.                   allow you to break out of programs normally.  If you
  1190.                   use type 7 input, see the /BS switch.  The default is
  1191.                   /KT8.
  1192.  
  1193.         /KU's'    Undefine a key macro.  This switch clears the most
  1194.                   recent definition of a key macro.  The key name is
  1195.                   delimited similarly to the key macro definition switch
  1196.                   (/KD), except there is no replacement text.  Note that
  1197.                   a key macro may have multiple definitions and this
  1198.                   switch only clears the most recent.  Use the /KF switch
  1199.                   to clear all definitions of a key macro.
  1200.  
  1201.         /KWfile   Write key macros to a file.  All currently defined key
  1202.                   macros are written to the specified file.  The file is
  1203.                   a standard text file with one key macro definition per
  1204.                   line.  Key macros saved with this switch can be loaded
  1205.                   with the /KR switch.
  1206.  
  1207.         /Mddd     Set the multiplex number.  If you get the message
  1208.                   "Multiplex number in use by another program" when you
  1209.                   try to install Toddy, you can change the multiplex
  1210.                   number with the /M switch.  You should not set the
  1211.                   multiplex number after installing Toddy, and when you
  1212.                   do change the multiplex number, you should save the
  1213.                   setting with the /W switch.  The multiplex number
  1214.                   should be in the range 192 to 255.  The default is
  1215.                   /M215.  To change the multiplex number to 240, before
  1216.                   installing Toddy, run:
  1217.  
  1218.  
  1219.  
  1220.  
  1221.                     TODDY /m240 /w
  1222.  
  1223.         /MC       Clear all macro definitions.  This switch can be used
  1224.                   to delete all currently defined macros, or to ignore
  1225.                   any macros saved to TODDY.COM when installing.
  1226.  
  1227.         /MD's's'  Define a macro.  This parameter uses two fields, the
  1228.                   macro name and the replacement text.  The first charac-
  1229.                   ter after the /MD is the definition delimiter.  Though
  1230.                   this delimiter is usually a quote (or double quote), it
  1231.                   can be any character not used in the macro name or
  1232.                   replacement text.  There are three delimiters: one at
  1233.                   the start of the macro name, one separating the macro
  1234.                   name from the replacement text, and one at the end of
  1235.                   the replacement text.  The macro name can be any se-
  1236.                   quence of characters, though it shouldn't contain any
  1237.                   spaces.  The replacement text can contain any sequence
  1238.                   of characters.  Note: this switch does not remove any
  1239.                   previous definitions of the macro.  Use the /ME switch
  1240.                   to replace the most recent definition of a macro.
  1241.  
  1242.         /ME's's'  Exchange a macro.  This switch replaces the most recent
  1243.                   definition of a macro, which is equivalent to undefin-
  1244.                   ing then defining a macro.  The syntax and usage are
  1245.                   identical to the /MD switch.
  1246.  
  1247.         /MF's'    Forget a macro.  This switch clears all definitions of
  1248.                   a macro (not just the most recent definition).  The
  1249.                   macro name is delimited similarly to the macro defini-
  1250.                   tion switch (/MD), except there is no replacement text.
  1251.                   Use the /MU switch to clear only the most recent defi-
  1252.                   nition.
  1253.  
  1254.         /ML       List macros.  All currently defined macros will be
  1255.                   displayed.
  1256.  
  1257.         /MNddd    Set maximum macro nest level.  A nest level is used
  1258.                   whenever a macro calls another macro.  If the maximum
  1259.                   nest level is reached while running a macro, Toddy will
  1260.                   beep and abort the macro.  Toddy requires 4 bytes of
  1261.                   memory for each nest level.  If you don't use macros,
  1262.                   you can conserve memory by setting the nest level to 0
  1263.                   with /MN0.  The default is /MN10.
  1264.  
  1265.         /MRfile   Read macros from a file.  The file must be a standard
  1266.                   text file.  The file may be created by the user or by
  1267.                   saving macros with the /MW switch.  Each line of the
  1268.                   file contains a single macro definition.  The macros
  1269.                   must be defined in the form:
  1270.  
  1271.                     macro=text
  1272.  
  1273.                   where "macro" is the name of the macro and "text" is
  1274.                   the replacement text for the macro.  All characters
  1275.  
  1276.  
  1277.  
  1278.                   after the first equals sign become part of the macro
  1279.                   text.
  1280.  
  1281.         /MSddddd  Set the macro table size.  The macro table size is the
  1282.                   number of bytes reserved for macro definitions (includ-
  1283.                   ing key macros).  The default is /MS512.
  1284.  
  1285.         /MU's'    Undefine a macro.  This switch clears the most recent
  1286.                   definition of a macro.  The macro name is delimited
  1287.                   similarly to the macro definition switch (/MD), except
  1288.                   there is no replacement text.  Note that a macro may
  1289.                   have multiple definitions and this switch only clears
  1290.                   the most recent.  Use the /MF switch to clear all
  1291.                   definitions of a macro.
  1292.  
  1293.         /MWfile   Write macros to a file.  All currently defined macros
  1294.                   are written to the specified file.  The file is a
  1295.                   standard text file with one macro definition per line.
  1296.                   Macros saved with this switch can be loaded with the
  1297.                   /MR switch.
  1298.  
  1299.         /NB       Backslashed directory names.  Add a backslash to direc-
  1300.                   tory names inserted with F9 and F10.  Note that you
  1301.                   must first use the /NT switch with the proper value to
  1302.                   match directory names.  This is the default setting.
  1303.  
  1304.         /NC       Clean directory names.  Don't add a backslash to direc-
  1305.                   tory names inserted with F9 and F10.  This switch turns
  1306.                   off the /NB switch.
  1307.  
  1308.         /NL       Display file names in lowercase letters.  This switch
  1309.                   makes file names inserted with the F9 and F10 keys
  1310.                   appear in lowercase letters.
  1311.  
  1312.         /NSddddd  File name size.  This is the size of the area for
  1313.                   saving file names matched with F9 and F10, allowing you
  1314.                   to display previous matches with Shift-F9.  There is a
  1315.                   105 byte (or so) overhead for file name matching, so if
  1316.                   you specify a number less than 105, the number will be
  1317.                   changed to zero.  You can set this value to zero if you
  1318.                   don't use the file name completion commands.  The
  1319.                   default is /NS256.
  1320.  
  1321.         /NTxx     Select the file types for file name completion.  This
  1322.                   switch allows you to specify what types of files will
  1323.                   be matched by the file name completion commands (F9 and
  1324.                   F10).  The possible values are: 00 = normal file, 02 =
  1325.                   hidden files, 04 = system files, and 10 = directories.
  1326.                   Add the hexadecimal values together to combine types.
  1327.                   /NT10 (00 + 10) finds all normal files and directories.
  1328.                   /NT06 (00 + 02 + 04) finds all normal, hidden, and
  1329.                   system files. /NT16 (00 + 02 + 04 + 10) finds all files
  1330.                   and directories.  The default is /NT00 (find normal
  1331.                   files only).
  1332.  
  1333.  
  1334.  
  1335.         /NU       Display file names in uppercase letters.  This switch
  1336.                   makes file names inserted with the F9 and F10 keys
  1337.                   appear in uppercase letters.  This is the default
  1338.                   setting.
  1339.  
  1340.         /ORfile   Read configuration from a file.  All switch settings,
  1341.                   macros, and key assignments are loaded.  If no file
  1342.                   name is specified, the configuration will be loaded
  1343.                   from the file TODDY.CFG in the same directory as
  1344.                   TODDY.COM.  Usually, the configuration file is created
  1345.                   with the /OW switch.
  1346.  
  1347.         /OWfile   Write configuration to a file.  All switch settings,
  1348.                   macros, and key assignments are saved.  This switch
  1349.                   does NOT save the command history (you can use the /HW
  1350.                   and /HR switches to save and load the command history).
  1351.                   If no file name is specified, the configuration will be
  1352.                   saved to the file TODDY.CFG in the same directory as
  1353.                   TODDY.COM.  The configuration file TODDY.CFG will be
  1354.                   loaded automatically when Toddy is installed.  Configu-
  1355.                   ration files can also be loaded explicitly with the /OR
  1356.                   switch.  Configuration files are standard text files
  1357.                   with one switch per line, and can be created or modi-
  1358.                   fied with a standard text editor.
  1359.  
  1360.         /Q        Enable quiet mode.  When Toddy is in quiet mode, the
  1361.                   regular confirmation messages are suppressed -- only
  1362.                   error messages are displayed.
  1363.  
  1364.         /R's'     Run a command.  The specified command is preloaded to
  1365.                   the input buffer and the next time Toddy gets the
  1366.                   chance the command will be executed.  If this switch is
  1367.                   used in batch file, the command will be run as soon as
  1368.                   the batch file terminates.  The command is delimited
  1369.                   similarly to the macro definition switch (/MD), except
  1370.                   there is no replacement text.
  1371.  
  1372.         /S        Select a previous command.  This switch opens the
  1373.                   command history window and lets you select a past
  1374.                   command by scrolling through the command history.  Once
  1375.                   Toddy has been installed, running Toddy without any
  1376.                   command line arguments also performs this function.
  1377.  
  1378.         /SCddd    Set the number of columns used by the command history
  1379.                   window.  This the number includes the border.  The
  1380.                   default is /SC0, which tells Toddy to decide how many
  1381.                   columns.
  1382.  
  1383.         /SRddd    Set the number of rows used by the command history
  1384.                   window.  This number includes the border.  The default
  1385.                   is /SR0, which tells Toddy to decide how many rows.
  1386.  
  1387.         /TC       Use the custom cursor type defined with the /TE, /TI,
  1388.                   and /TO switches.  The /TE, /TI, and /TO switches
  1389.                   automatically set this switch.
  1390.  
  1391.  
  1392.  
  1393.  
  1394.         /TExxxx   Set the entry cursor type.  This switch sets both the
  1395.                   insert and overwrite cursor types.  This switch should
  1396.                   be used instead of the /TI and /TO switches.  The
  1397.                   cursor type is the size and shape of the blinking
  1398.                   cursor blob.  The first byte of this two byte value is
  1399.                   the top scan line number and the second byte is the
  1400.                   bottom scan line number.  The scan lines for CGA are
  1401.                   numbered 00 to 07, for EGA adapters it's 00 to 0D, and
  1402.                   for VGA adapters it's 00 to 0E.  The default cursor is
  1403.                   usually the bottom two scan lines (i.e. 0607 for CGA,
  1404.                   0C0D for EGA, and 0D0E for VGA).  You can make a big
  1405.                   blinking blob on most adapters with 000F.  You can turn
  1406.                   off the blinking cursor entirely on most adapters with
  1407.                   value of 2000.  The value FFFF is reserved by Toddy to
  1408.                   indicate that the cursor should not be modified.
  1409.  
  1410.         /TIxxxx   Set the insert cursor type.  This is the cursor type
  1411.                   used when in insert mode.  The /TE switch describes how
  1412.                   to set the cursor type.
  1413.  
  1414.         /TOxxxx   Set the overwrite cursor type.  This is the cursor type
  1415.                   used when in overwrite mode.  The /TE switch describes
  1416.                   how to set the cursor type.
  1417.  
  1418.         /TS       Use system cursor (i.e. don't make any changes to it).
  1419.                   This switch turns off all the custom cursor settings.
  1420.                   This is the default.
  1421.  
  1422.         /TXxxxx   Set exit cursor type.  This is the cursor type to use
  1423.                   when Toddy has finished inputting a line.  Generally,
  1424.                   this switch is used to restore the cursor after setting
  1425.                   it with the other cursor switches.  For this and the
  1426.                   other cursor switches, if no cursor is specified, the
  1427.                   current system cursor will be used (i.e. this switch
  1428.                   usually isn't necessary).
  1429.  
  1430.         /U        Uninstall Toddy.  This switch removes Toddy from memo-
  1431.                   ry.  It may not be possible to uninstall Toddy if
  1432.                   another TSR has been loaded after Toddy.
  1433.  
  1434.         /UI       Uppercase letters are ignored.  This switch turns off
  1435.                   the /UI switch and is the default setting.
  1436.  
  1437.         /US       Uppercase letters are significant.  If this switch is
  1438.                   specified, Toddy will treat upper and lowercase letters
  1439.                   as being different.  For instance, if you define a
  1440.                   macro called "DIR" and ran the command "dir", the macro
  1441.                   will NOT be run.  This switch also affects command
  1442.                   history operations, like searches and saving unique
  1443.                   commands (the /HU switch).  Note that DOS is NOT case-
  1444.                   sensitive -- this switch only affects Toddy.
  1445.  
  1446.         /V        Enable verbose mode.  This switch turns off the /Q
  1447.                   switch and is the default setting.
  1448.  
  1449.  
  1450.  
  1451.  
  1452.         /VLddd    Set the maximum length of the names of macros to be
  1453.                   expanded within other macros.  This number limits the
  1454.                   length of the macro name allowed in the $() macro
  1455.                   parameter, not the text that's expanded.  The default
  1456.                   is /VL16.
  1457.  
  1458.         /VNddd    Set the maximum nest level of macros expanded within
  1459.                   other macros.  Nest levels are used whenever a $()
  1460.                   parameter occurs within another $() parameter.  The
  1461.                   default is /VN10.
  1462.  
  1463.         /W        Write current settings to TODDY.COM.  All switches, key
  1464.                   assignments, and macros will be written the executable
  1465.                   file TODDY.COM.  The settings will be the new defaults
  1466.                   the next time Toddy is installed.  Macro definitions
  1467.                   may be removed from TODDY.COM by undefining the macro
  1468.                   and rewriting the settings.  If you are running DOS
  1469.                   2.X, TODDY.COM must be in the current directory when
  1470.                   using this switch.  Usually, the /OW switch is a better
  1471.                   method for saving the current settings.
  1472.  
  1473.         /WU       Force Windows to use a single copy of Toddy for all DOS
  1474.                   windows.  Normally, Windows creates a separate copy of
  1475.                   Toddy for each DOS window.  The advantage of using a
  1476.                   single copy of Toddy is that new commands saved to the
  1477.                   command history, changes to macros, and other settings
  1478.                   will be preserved from DOS session to DOS session, and
  1479.                   also remain intact after you exit Windows.  DO NOT use
  1480.                   this switch if you open up more than one DOS window at
  1481.                   a time, because the two windows will interfere with
  1482.                   each other.
  1483.  
  1484.         /WP       Force Windows to use a separate copy of Toddy for each
  1485.                   DOS window.  Changes to Toddy in one DOS window will
  1486.                   not affect Toddy in another DOS window.  Also, any
  1487.                   changes you make to Toddy in a DOS window will will not
  1488.                   be preserved after you exit Windows.  This switch turns
  1489.                   off the /WU switch.  This switch turns off /WU and is
  1490.                   the default setting.
  1491.  
  1492.                                          Examples
  1493.                                          --------
  1494.  
  1495.         TODDY
  1496.  
  1497.           Install Toddy using the default switches.
  1498.  
  1499.         TODDY /hs10000 /ms100 /to000f
  1500.  
  1501.           Install Toddy with a 10000 byte command history, 100 byte macro
  1502.           area, and set the cursor scan lines to a big blinking blob
  1503.           whenever overwrite mode is in effect.
  1504.  
  1505.         TODDY /at1F /ac4F /ae1F /te2000
  1506.  
  1507.  
  1508.  
  1509.  
  1510.           Set the colors to a uniform bright white on blue with a red
  1511.           block cursor.  The blinking cursor is turned off for each
  1512.           input.
  1513.  
  1514.         TODDY /hs1000 /hm6 /ow
  1515.  
  1516.           Write the /HS1000 and /HM6 switches to TODDY.CFG so they don't
  1517.           need to be specified the next time Toddy is installed.
  1518.  
  1519.         TODDY /md'dir'dir $* /w' /md'del'move $1 c:\trashcan' /cl33
  1520.  
  1521.           Define two macros and set the literal character to an exclama-
  1522.           tion mark.  The first macro appends the /W parameter to all DIR
  1523.           commands.  The second macro makes the DEL command move files to
  1524.           be deleted to a directory called TRASHCAN, where they can be
  1525.           later retrieved if you change your mind about the deletion.
  1526.           With the definition of the literal character, !DEL performs a
  1527.           regular and permanent delete.  The DEL macro requires a MOVE
  1528.           utility, which isn't included with DOS prior to version 6, but
  1529.           is available on many BBS's and online services.
  1530.  
  1531.         TODDY /u
  1532.  
  1533.           Remove Toddy from memory.
  1534.  
  1535.  
  1536.                                   Version Changes
  1537.                                   ---------------
  1538.  
  1539.         Version 2.00
  1540.  
  1541.           First public release.
  1542.  
  1543.         Version 2.01
  1544.  
  1545.           Several command line switches renamed.
  1546.  
  1547.         Version 2.10
  1548.  
  1549.           Ctrl-Break implemented and mouse support removed to conserve
  1550.           memory.
  1551.  
  1552.         Version 2.11
  1553.  
  1554.           Search command made case-insensitive.
  1555.  
  1556.         Version 2.20
  1557.  
  1558.           Cursor switches expanded.
  1559.  
  1560.         Version 3.00
  1561.  
  1562.           Complete rewrite.  New features include chained commands and
  1563.           macros.  Other changes include: most command line switches
  1564.  
  1565.  
  1566.  
  1567.           renamed, switches are automatically passed to a resident Toddy
  1568.           (no /RS needed), default values changed, several editing keys
  1569.           changed, delimiters for move word left and right changed, and
  1570.           history search improved.
  1571.  
  1572.         Version 4.00
  1573.  
  1574.           Many new features added: macros and the command history may be
  1575.           saved and loaded from a file, control characters can be en-
  1576.           tered, Ctrl-Break cancels chained commands and macros, DOS
  1577.           editing keys supported, file name completion, and more.  Other
  1578.           changes include: several editing keys changed, alternate syntax
  1579.           for defining macros, switches must start with a slash (/),
  1580.           macro parameter syntax slightly changed.
  1581.  
  1582.         Version 5.00
  1583.  
  1584.           Macro interpreter totally rewritten: previous restrictions with
  1585.           regard to the $* parameter have been removed, parameters above
  1586.           $9 are now $10 to $99, new special parameters introduced ($t,
  1587.           $l, $g, etc), $n* parameter added, trailing arguments automati-
  1588.           cally appended to macro expansion, the asterisk in the $* and
  1589.           $n* parameters can be redefined.  New features added: quoted
  1590.           strings, command history window, comments in macro files,
  1591.           preload a command to the input buffer (/R switch), and the /FL,
  1592.           /FU, /HT, /HN switches.  Other changes include: down arrow key
  1593.           has new function (see /HT and /HN switches), macro definition
  1594.           syntax "macro=text" and "macro=" replace and undefine macro
  1595.           definitions, /Q affects banner without writing to file, new
  1596.           memory configuration option /B, and suppresses system prompt
  1597.           for phantom drives.
  1598.  
  1599.         Version 5.01
  1600.  
  1601.           Fixed a bug associated with the /TE /TI /TO /TX switches.
  1602.  
  1603.         Version 5.10
  1604.  
  1605.           Cursor is moved to the end of the line when loading commands
  1606.           from the command history, the cursor isn't hidden in the selec-
  1607.           tion window, and the allocation switch (/A) displays more
  1608.           information.
  1609.  
  1610.         Version 5.11
  1611.  
  1612.           Fixed "Error in switches ..." message when using /S switch.
  1613.  
  1614.         Version 6.00
  1615.  
  1616.           New features: can redefine keys with key macros, opposite
  1617.           direction command history search and file name matching, can
  1618.           expand macros within body of other macros, backslash added to
  1619.           directory names, better command history management.  New
  1620.           switches: /CB, /CE, /CV, /CW, /HD, /HI, /HK, /HP, /KC, /KD,
  1621.           /KE, /KF, /KL, /KR, /KS, /KT, /KU, /KW, /NB, /NC, /NS, /OR,
  1622.  
  1623.  
  1624.  
  1625.           /OW, /VL, /VN, /WU, /WP.  Changed switches: /FT to /NT, /FU to
  1626.           /NU, /FL to /NL; changed meaning of /HT and /HN.  Fixed bugs:
  1627.           DOS template commands, /R processing, delete current history
  1628.           line (^D).  Comment lines are no longer allowed in saved macro
  1629.           files.
  1630.  
  1631.                                       Notes
  1632.                                       -----
  1633.  
  1634.         Toddy performs the same function as the DOSKEY utility provided
  1635.         with DOS version 5 and up.  The two programs are somewhat macro
  1636.         and keystroke compatible, though the command line switches are
  1637.         totally different.  By and large, Toddy has a lot more features
  1638.         than DOSKEY but uses more memory.
  1639.  
  1640.         Toddy will work with 4DOS (and the version of 4DOS licensed to
  1641.         Symantec/Peter Norton Computing called NDOS), though the /L1
  1642.         parameter must be set using the SETDOS command.  When Toddy is
  1643.         installed under 4DOS, many of 4DOS' features are still available,
  1644.         including aliases and multiple commands on a single line.  Toddy
  1645.         is somewhat redundant when using 4DOS, since most of the features
  1646.         of Toddy are available through 4DOS.  If you use Toddy's /BS
  1647.         switch, the setting for 4DOS must be /BS255.
  1648.  
  1649.         You may have some trouble using redirected input with programs
  1650.         like DEBUG and EDLIN when Toddy is installed.  If Toddy receives
  1651.         a redirected text file, Toddy will interpret both the carriage
  1652.         return and linefeed, which are at the end of every text line, as
  1653.         the Enter key.  In effect, you'll get two Enters after every
  1654.         line.  To fix this problem, temporarily disable Toddy or use the
  1655.         /BS switch to limit when Toddy is active.  Redirected input is
  1656.         sometimes used to assemble small programs using the DEBUG pro-
  1657.         gram.
  1658.  
  1659.         The memory allocated by the /HS, /MS, and /NS switches is as-
  1660.         signed to a common pool called the heap.  Any space not used by
  1661.         macros (including key macros) is available for the command histo-
  1662.         ry.  If a file match command is used (F9 or F10), the oldest com-
  1663.         mand history entries may be deleted to make room, though the file
  1664.         matching commands will never use more than what it has been
  1665.         allocated.  You can display the current memory allocations with
  1666.         the /A switch.
  1667.  
  1668.         The DOS template commands (F1 to F6) use the most recent command
  1669.         line stored in the command history, so if you plan on using these
  1670.         keys, you should make sure that there is enough available heap
  1671.         space to hold at least one command line.
  1672.  
  1673.         Before Toddy is installed, all available memory is allocated to
  1674.         the memory pool.  If you run "TODDY /A" before installing Toddy,
  1675.         the total allocated memory will usually be larger than the sum of
  1676.         the first three numbers.  This is the total bytes available for
  1677.         the /B, /FS, /HS, /KS, /MS, /MN, /VL, and /VN switches.
  1678.  
  1679.         Each command of a chained command is displayed as it is executed.
  1680.  
  1681.  
  1682.  
  1683.         Only the final form of the command is displayed (that is, after
  1684.         all macros have been processed).  To see the see final form of
  1685.         the first command, precede the chained commands with the chain
  1686.         character.  For instance, if you defined the following macro:
  1687.  
  1688.           TODDY d=dir
  1689.  
  1690.         when you run the "d" macro, you will not see the DIR command,
  1691.         just the results of the DIR.  If you wish to see the actual DIR,
  1692.         define the macro as:
  1693.  
  1694.           TODDY d=$s$tdir
  1695.  
  1696.         You might have trouble using the DOS pipe and redirection com-
  1697.         mands with macros because the macro parameters $* and $n* will
  1698.         include such commands.  For instance, if you define the following
  1699.         macro:
  1700.  
  1701.           TODDY d=dir $* /w
  1702.  
  1703.         and then try run D and redirect the output with "d > file", the
  1704.         macro will expand to "dir > file /w", which probably isn't what
  1705.         you want.  With most programs, you can solve this problem by
  1706.         specifying the command line switches first, so define the macro
  1707.         as:
  1708.  
  1709.           TODDY d=dir /w $*
  1710.  
  1711.         You can use the parameter character (the dollar sign by default)
  1712.         in macro names, but if you call that macro from another macro,
  1713.         you must use two parameter characters ($$).  You can also use the
  1714.         chain character in macro names, but you must put the macro name
  1715.         in (removable) quotes to call it.  Macro names cannot contain
  1716.         spaces or removable quotes.  If you use a quote before or within
  1717.         the first field of a line, the quotes only affect the first field
  1718.         (i.e. the command), not the arguments.
  1719.  
  1720.         If you have saved macros to TODDY.COM (using the /W switch), use
  1721.         the /MC switch to install Toddy without those macro definitions.
  1722.         It will be necessary use the /MC switch to install Toddy with a
  1723.         macro and history size of zero if you have saved macros in this
  1724.         manner.  The same applies to key macros and the /KC switch.
  1725.  
  1726.         Maximum line length for all commands that read or write to a file
  1727.         (/HR, /HW, /MR, etc) is 512.  This limits the size of macros and
  1728.         key assignments.  Lines that are too long will generate a read
  1729.         error.
  1730.  
  1731.                              DISCLAIMER OF WARRANTY
  1732.                              ----------------------
  1733.  
  1734.         THIS SOFTWARE AND MANUAL ARE DISTRIBUTED "AS IS" AND WITHOUT
  1735.         WARRANTIES AS TO PERFORMANCE OF MERCHANTABILITY OR ANY OTHER
  1736.         WARRANTIES WHETHER EXPRESSED OR IMPLIED.  BECAUSE OF THE VARIOUS
  1737.         HARDWARE AND SOFTWARE ENVIRONMENTS INTO WHICH THIS PROGRAM MAY BE
  1738.  
  1739.  
  1740.  
  1741.         PUT, NO WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE IS OFFERED.
  1742.  
  1743.         GOOD DATA PROCESSING PROCEDURE DICTATES THAT ANY PROGRAM BE
  1744.         THOROUGHLY TESTED WITH NON-CRITICAL DATA BEFORE RELYING ON IT.
  1745.         THE USER MUST ASSUME THE ENTIRE RISK OF USING THE PROGRAM.  ANY
  1746.         LIABILITY OF THE SELLER WILL BE LIMITED EXCLUSIVELY TO PRODUCT
  1747.         REPLACEMENT OR REFUND OF PURCHASE PRICE.
  1748.